
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>图标定义 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="cssAttention.html" />
    
    
    <link rel="prev" href="publicCss.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../../">
            
                <a href="../../../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../listRule.html">
            
                <a href="../listRule.html">
            
                    
                    目录规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    书写规范
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../pug/pugRules.html">
            
                <a href="../pug/pugRules.html">
            
                    
                    pug规范
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../pug/pugMixinRules.html">
            
                <a href="../pug/pugMixinRules.html">
            
                    
                    pug-Mixin定义
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" >
            
                <span>
            
                    
                    css规范
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.2.1" data-path="publicCss.html">
            
                <a href="publicCss.html">
            
                    
                    公共css定义
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.2.2" data-path="icon.html">
            
                <a href="icon.html">
            
                    
                    图标定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2.3" data-path="cssAttention.html">
            
                <a href="cssAttention.html">
            
                    
                    css注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../js/jsRules.html">
            
                <a href="../js/jsRules.html">
            
                    
                    js规范
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    组件定义
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" >
            
                <span>
            
                    
                    定义好的components
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../../Chapter2/mixin/alert.html">
            
                <a href="../../Chapter2/mixin/alert.html">
            
                    
                    alert
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../../Chapter2/mixin/button.html">
            
                <a href="../../Chapter2/mixin/button.html">
            
                    
                    button
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.3" data-path="../../Chapter2/mixin/form.html">
            
                <a href="../../Chapter2/mixin/form.html">
            
                    
                    form
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.4" data-path="../../Chapter2/mixin/toast.html">
            
                <a href="../../Chapter2/mixin/toast.html">
            
                    
                    toast
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.5" data-path="../../Chapter2/mixin/dialog.html">
            
                <a href="../../Chapter2/mixin/dialog.html">
            
                    
                    dialog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.6" data-path="../../Chapter2/mixin/navbar.html">
            
                <a href="../../Chapter2/mixin/navbar.html">
            
                    
                    navbar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.7" data-path="../../Chapter2/mixin/footbar.html">
            
                <a href="../../Chapter2/mixin/footbar.html">
            
                    
                    footbar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.8" data-path="../../Chapter2/mixin/swiper.html">
            
                <a href="../../Chapter2/mixin/swiper.html">
            
                    
                    swiper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.9" data-path="../../Chapter2/mixin/action.html">
            
                <a href="../../Chapter2/mixin/action.html">
            
                    
                    action
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.10" data-path="../../Chapter2/mixin/popup.html">
            
                <a href="../../Chapter2/mixin/popup.html">
            
                    
                    popup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.11" data-path="../../Chapter2/mixin/select.html">
            
                <a href="../../Chapter2/mixin/select.html">
            
                    
                    select
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.12" data-path="../../Chapter2/mixin/calendar.html">
            
                <a href="../../Chapter2/mixin/calendar.html">
            
                    
                    calendar
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../../Chapter2/else/mixinData.html">
            
                <a href="../../Chapter2/else/mixinData.html">
            
                    
                    组件渲染数据定义
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../../Chapter2/else/scriptTmpMixin.html">
            
                <a href="../../Chapter2/else/scriptTmpMixin.html">
            
                    
                    template定义组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../.." >图标定义</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x56FE;&#x6807;&#x5B9A;&#x4E49;">&#x56FE;&#x6807;&#x5B9A;&#x4E49;</h1>
<p>&#x672C;&#x9879;&#x76EE;&#x9664;&#x4E00;&#x4E9B;&#x7279;&#x5B9A;&#x7684;&#x56FE;&#x7247;&#x4F7F;&#x7528;png&#x6807;&#x7B7E;&#x5916;,&#x5E76;&#x4E14;&#x5229;&#x7528;gulp&#x63D2;&#x4EF6;&#x62FC;&#x6210;&#x96EA;&#x78A7;&#x56FE;&#x4E4B;&#x5916;,&#x5176;&#x4ED6;&#x4E00;&#x5F8B;&#x91C7;&#x7528;svg&#x683C;&#x5F0F;&#x4F7F;&#x7528;;</p>
<h3 id="&#x4F7F;&#x7528;&#x524D;&#x51C6;&#x5907;">&#x4F7F;&#x7528;&#x524D;&#x51C6;&#x5907;</h3>
<ol>
<li>&#x767B;&#x9646; <a href="https://www.iconfont.cn/" target="_blank">https://www.iconfont.cn/</a> &#x6CE8;&#x518C;&#x8D26;&#x53F7;</li>
<li>&#x8054;&#x7CFB;&#x9879;&#x76EE;&#x7BA1;&#x7406;&#x5458; &#x5218;&#x56FD;&#x4EAE;(qq: 873928073) &#x53D7;&#x9080;&#x8FDB;&#x5165;&#x9879;&#x76EE;&#x7BA1;&#x7406;</li>
</ol>
<h3 id="&#x4E0A;&#x4F20;&#x56FE;&#x7247;&#x6B65;&#x9AA4;">&#x4E0A;&#x4F20;&#x56FE;&#x7247;&#x6B65;&#x9AA4;</h3>
<h4 id="1-&#x4E0A;&#x4F20;&#x56FE;&#x7247;">1. <code>&#x4E0A;&#x4F20;&#x56FE;&#x7247;</code></h4>
<p>(&#x4E00;&#x822C;&#x627E;&#x8BBE;&#x8BA1;&#x7D22;&#x8981;&#x5BF9;&#x5E94;&#x56FE;&#x6807;<code>svg</code>&#x683C;&#x5F0F;&#x6587;&#x4EF6;)
<img src="../../../asset/images/iconstep/iconstep1.png" alt="&#x6B65;&#x9AA4;1"></p>
<h4 id="2-&#x586B;&#x5199;&#x63CF;&#x8FF0;">2. <code>&#x586B;&#x5199;&#x63CF;&#x8FF0;</code></h4>
<p><img src="../../../asset/images/iconstep/iconstep2.png" alt="&#x6B65;&#x9AA4;2"></p>
<h4 id="3-&#x4FEE;&#x6539;icon&#x7C7B;&#x540D;&#x79F0;">3. <code>&#x4FEE;&#x6539;icon&#x7C7B;&#x540D;&#x79F0;</code></h4>
<p><img src="../../../asset/images/iconstep/iconstep3-1.png" alt="&#x6B65;&#x9AA4;3-1">
<img src="../../../asset/images/iconstep/iconstep3-2.png" alt="&#x6B65;&#x9AA4;3-2"></p>
<h4 id="4-&#x586B;&#x5199;icon&#x7C7B;">4. <code>&#x586B;&#x5199;icon&#x7C7B;</code></h4>
<p><img src="../../../asset/images/iconstep/iconstep4.png" alt="&#x6B65;&#x9AA4;4"></p>
<h4 id="5-&#x6BCF;&#x6B21;&#x66F4;&#x65B0;&#x6279;&#x91CF;&#x66F4;&#x65B0;-&#x590D;&#x5236;&#x5730;&#x5740;&#x5230;&#x672C;&#x5730;-srccomponentslayoutpug">5. <code>&#x6BCF;&#x6B21;&#x66F4;&#x65B0;/&#x6279;&#x91CF;&#x66F4;&#x65B0; &#x590D;&#x5236;&#x5730;&#x5740;&#x5230;&#x672C;&#x5730; src\components\layout.pug</code></h4>
<pre><code class="lang-js">  script(src=<span class="hljs-string">&quot;http://at.alicdn.com/t/font_909755_yzb3vzo5e28.js&quot;</span>)
  <span class="hljs-comment">// &#x7136;&#x540E;&#x5728;&#x547D;&#x4EE4;&#x884C;&#x91CD;&#x65B0;&#x8F93;&#x5165; gulp watch &#x624D;&#x80FD;&#x770B;&#x5230;&#x6548;&#x679C;;</span>
</code></pre>
<p><img src="../../../asset/images/iconstep/iconstep5.png" alt="&#x6B65;&#x9AA4;5"></p>
<h3 id="&#x4F7F;&#x7528;">&#x4F7F;&#x7528;</h3>
<pre><code class="lang-pug">  // demo.pug
  .gzl-cell
    .gzl-cell-circleSelect
      .selectStatus
        +icon(&apos;#icon-check&apos;)  
    .gzl-cell__bd &#x5BB6;&#x5EAD;&#x4E3B;&#x5987;
</code></pre>
<p>&#x4F7F;&#x7528;&#x65B9;&#x5F0F;&#x4E3A;<code>+icon(#&#x5B9A;&#x4E49;&#x7684;&#x7C7B;&#x540D;)</code> &#x76F4;&#x63A5;&#x5728;<code>pug</code>&#x4E0A;&#x5F15;&#x5165;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="publicCss.html" class="navigation navigation-prev " aria-label="Previous page: 公共css定义">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="cssAttention.html" class="navigation navigation-next " aria-label="Next page: css注意事项">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"图标定义","level":"1.3.2.2","depth":3,"next":{"title":"css注意事项","level":"1.3.2.3","depth":3,"path":"src/Chapter1/css/cssAttention.md","ref":"src/Chapter1/css/cssAttention.md","articles":[]},"previous":{"title":"公共css定义","level":"1.3.2.1","depth":3,"path":"src/Chapter1/css/publicCss.md","ref":"src/Chapter1/css/publicCss.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"src/Chapter1/css/icon.md","mtime":"2019-01-24T07:35:34.608Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-25T09:10:09.700Z"},"basePath":"../../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../../gitbook/gitbook.js"></script>
    <script src="../../../gitbook/theme.js"></script>
    
        
        <script src="../../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

